package com.tuyou.cloud.feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "hello-service") //name对应要调用服务的spring.application.name
public interface HelloService {

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    String hello();
}
